<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchCIssues.ascx.vb" Inherits="WebForms_SearchCIssues" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<div>
    <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px;height: 5px;"></td></tr>
        </table>
        
        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr>
            <td align="right" style="font-weight: bold; font-size: 10pt; font-family: Arial">
                <asp:LinkButton ID="Search_Policies" runat="server" Font-Underline="False"
                    ForeColor="#0C58A2">Search Policies</asp:LinkButton>                        
            </td>
            <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                &nbsp;<asp:Label ID="Label4" runat="server" ForeColor="DimGray"
                    Text="|" Width="20px"></asp:Label></td>
            <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial">
                <asp:LinkButton ID="Search_ClientIssues" runat="server" Font-Underline="False" 
                    ForeColor="Black">Search Client Issues</asp:LinkButton>            
            </td>
            <td style="font-size: 11pt; font-family: Arial; font-weight: bold;" align="center">
                &nbsp;<asp:Label ID="Refferal_lbl" runat="server" ForeColor="DimGray"
                    Text="|" Width="20px"></asp:Label></td>
            <td align="right" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 88px;">
                <asp:LinkButton ID="Search_Referrals" runat="server" Font-Underline="False"
                    ForeColor="#0C58A2" Width="111px">Search Referrals</asp:LinkButton></td>
            <td align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial; width: 393px;"></td>
            
            </tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px; background-color: #105BA4; height: 3px;"></td></tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="800">
                
        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px;" align="left">
                        &nbsp;Policy Number:
                    </td>
                    <td style="width: 190px" align="left">
                        <asp:TextBox ID="Policynumber_txt" runat="server" Width="180px"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 108px;" align="left">
                        &nbsp;Date:
                    </td>
                    <td align="left" style="width: 190px">
                        <asp:TextBox ID="Date_txt" runat="server" Width="180px"></asp:TextBox><br />
                        <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Overline="False"
                            Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label>
                    </td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 62px;" align="left">
                        &nbsp;Status:
                    </td>
                    <td align="left" style="width: 140px">
                        <asp:TextBox ID="Status_txt" runat="server" Width="130px"></asp:TextBox></td>
                    
                </tr>
            </table>
                
        </td></tr>
        
         <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px;" align="left">
                        &nbsp;Last Name:
                    </td>
                    <td style="width: 190px" align="left">
                        <asp:TextBox ID="Last_Name_txt" runat="server" Width="180px"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 108px;" align="left">
                        &nbsp;First Name:
                    </td>
                    <td align="left" style="width: 190px">
                        <asp:TextBox ID="Name_txt" runat="server" Width="180px"></asp:TextBox>
                    </td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 62px;" align="left">
                        &nbsp;
                    </td>
                    <td align="left" style="width: 140px"></td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="font-size: 10pt; font-family: Verdana; width: 110px;" align="left">
                        &nbsp;Provider:
                    </td>
                    <td style="width: 190px" align="left">
                        <asp:TextBox ID="Provider_txt" runat="server" Width="180px"></asp:TextBox></td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 108px;" align="left">
                        &nbsp;Product:
                    </td>
                    <td align="left" style="width: 190px">
                        <asp:TextBox ID="Product_txt" runat="server" Width="180px"></asp:TextBox>
                    </td>
                    <td style="font-size: 10pt; font-family: Verdana; width: 62px;" align="left">
                        &nbsp;
                    </td>
                    <td align="left" style="width: 140px">
                        </td>
                </tr>
            </table>
                
        </td></tr>

        <tr><td style="width: 800px">

            <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
                <tr>
                    <td style="width: 400px; height: 24px;"></td>
                    <td style="height: 24px">
                        <asp:Button ID="Search_btn" runat="server" Text="Search" BackColor="Gainsboro" Font-Names="Verdana" />
                    </td>
                    <td style="width: 59px; height: 24px;"></td>
                    <td style="height: 24px">
                        <asp:Button ID="Print_btn" runat="server" Text="Print Results" BackColor="Gainsboro" Font-Names="Verdana" Width="104px" Visible="False" />
                    </td>
                    <td style="height: 24px">
                        <asp:Button ID="Save_btn" runat="server" Text="Save as Excel" BackColor="Gainsboro" Font-Names="Verdana" Width="112px" />
                    </td>
                </tr>
            </table>
                
        </td></tr>

        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px; background-color: #c0c0c0; height: 3px;"></td></tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" width="800">
            <tr><td style="font-size: 3px; height: 20px;"></td></tr>
        </table>

        <table cellpadding="0" cellspacing="0" width="800px" style="font-family:Verdana; font-size:10pt" visible="false">
            <tr>
            <td align="left" style="height: 16px"> Search Results: <asp:Label ID="results_label" runat="server" Text="0"></asp:Label></td>
            <td align="right" style="height: 16px;"> 
                <asp:LinkButton ID="AddNewBusiness" runat="server" ForeColor="Black" PostBackUrl="~/New_Business/Default.aspx"
                    TabIndex="11" Font-Underline="True" Visible="False">Add New Issue</asp:LinkButton></td>
            </tr>
        </table>
        
        <table cellpadding="0" cellspacing="0" width="800px" style="font-family:Verdana; font-size:3pt; height:3px">
            <tr><td>&nbsp;</td></tr>
        </table>        
        
        <table cellpadding="0" cellspacing="0">
            <tr><td style="width: 800px;">
                <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="800px" Font-Size="10pt" TabIndex="12" AllowSorting="True" AllowPaging="True">
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                    <AlternatingItemStyle BackColor="#D7DADF" />
                    <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                    <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundColumn DataField="policy_seq_cd" Visible="False"></asp:BoundColumn>
                        <asp:BoundColumn DataField="policy_issue_cd" Visible="False"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Policy #" DataField="policy_no">
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Name" DataField="ClientName">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" />
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Date" DataField="policy_issue_dt" DataFormatString="{0:dd-MMM-yyyy}"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Provider" DataField="provider_desc">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" />
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="prdt_desc" HeaderText="Product">
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Left" />
                            <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Status" DataField="Status"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Remarks" DataField="Remarks"></asp:BoundColumn>
                        <asp:ButtonColumn CommandName="Edit" Text="Edit">
                            <HeaderStyle Width="10px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:ButtonColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle Width="15px" />
                            <ItemTemplate>
                                <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black">Delete</asp:LinkButton>
                                <ajaxToolkit:ConfirmButtonExtender
                                    ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                                </ajaxToolkit:ConfirmButtonExtender>
                            </ItemTemplate>
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:TemplateColumn>
                        <asp:ButtonColumn CommandName="View" Text="View">
                            <HeaderStyle Width="15px" />
                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                Font-Underline="False" HorizontalAlign="Center" />
                        </asp:ButtonColumn>
                    </Columns>
                </asp:DataGrid></td></tr>
        </table>
</div>
<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999"
    MaskType="Date" TargetControlID="Date_txt">
</ajaxToolkit:MaskedEditExtender>
